package com.example.lgseckill.domain;

import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * Author:e
 * 秒杀订单
 * Date:2021/8/17 10:18 上午
 **/
public class SeckillOrder {

    /**
     * 秒杀订单id
     */
    @TableId("seckill_order_id")
    private String seckillOrderId;

    /**
     * 秒杀商品id
     */
    private Long seckillId;

    /**
     * 秒杀数量
     */
    private int seckillNumber;

    /**
     * 所属用户
     */
    private Long userId;

    private Long productId;

    /**
     * 支付状态0未支付，1已支付，2支付超时，3主动取消支付
     */
    private int payStatus;

    /**
     * 支付类型，支付宝/微信/银联
     */
    private String payType;

    /**
     * 创建时间
     */
    private Date createTime;

    public String getSeckillOrderId() {
        return seckillOrderId;
    }

    public void setSeckillOrderId(String seckillOrderId) {
        this.seckillOrderId = seckillOrderId;
    }

    public Long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Long seckillId) {
        this.seckillId = seckillId;
    }

    public int getSeckillNumber() {
        return seckillNumber;
    }

    public void setSeckillNumber(int seckillNumber) {
        this.seckillNumber = seckillNumber;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }
}
